<%@ page language="java" pageEncoding="UTF-8" buffer="16kb"%>
<%@ include file="/base.jsp"%>
<%@ include file="/module/taglibs.jsp"%>
<%@ include file="/module/nocache.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<%@ include file="/module/js.jsp"%>
<%@ include file="/module/orderField.jsp"%>

     <script type="text/javascript" src="${basePath}/js/jquery.Huploadify.js"></script>
     <link href="${basePath}/css/Huploadify.css" rel="stylesheet">
<style>

table label.error {
    margin-left: 5px;
    width: auto;
    display: inline;
    color: red;
}
</style>


</head>
<body>
     <form action="#" name="Form" id="Form" method="post">
        <input type="hidden" name="projectMaterialId" id="projectMaterialId"  value="${data.projectMaterialId}"/>
         <input type="hidden" name="id" id="id"  value="${id}"/>
		<table cellpadding="0" cellspacing="0" border="0" class="table-border" width="80%">
			<tr>
				<td class="table-header" colspan="4">材料管理</td>
			</tr>
			<tr>
				<td class="table-titleTD" style="width: 30%">主题：</td>
				<td class="table-contentTD" style="width: 70%">${data.title}</td>
			</tr>
			<tr>
				<td class="table-titleTD" style="width: 30%">时间：</td>
				<td class="table-contentTD" style="width: 70%">${data.date1}</td>
			</tr>
			
			 <tr>
			    <td class="table-titleTD" style="width: 30%">负责人：</td>
				<td class="table-contentTD" style="width: 70%">${data.xm}</td>	
		 	</tr>
		 	
			<tr>
						 <td class="table-titleTD" style="width: 30%">附件：</td>
						 <td colspan="3">
						      <table>
						           <c:forEach items="${dataList}" var="projectMaterialFilepath" varStatus="index">
							           <tr>
						                    <td>
									            [文件] ${projectMaterialFilepath.filename}
									         </td>
									         <td>
									               <a href="${basePath}/DownLoadFileServlet?filename=${projectMaterialFilepath.filename}&filepath=${projectMaterialFilepath.filepath}">下载</a> 
					                          </td>
						                </tr>
							   	    </c:forEach>
							   </table>
						 </td>
			</tr>
			<tr>
				<td class="table-titleTD">备注：</td>
				<td class="table-contentTD" colspan="2">${data.remark}</td>
			</tr>
		</table>
		<br />
		<table cellpadding="1" cellspacing="1" border="0" align="left">
			<tr>
				 <td><input type="button" id="returnBut"  class="inputButton" value="返回"  style="text-align: center;"/></td>
			</tr>
		</table>
		<script>
		 
			$(document).ready(function() {
				 
				 $("#returnBut").click(function() {
					  window.location.href="${basePath}/projectmaterial/projectindex?id=${id}";
		 		 });
			});
		</script>
	</form>
</body>
</html>
